<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="d1">
        <p>{{msg}}</p>
        <p v-text="msg"></p>
        <p v-html="msg"></p>

        <button v-on:click="f1">click</button>
        <button @click="f1">click</button>
        <button @click="f2('abc')">click</button>
        <button @click="f3">click</button>
    </div>
</body>
<script>
    new Vue({
        el:"#d1",
        data:{
            msg:"<h1>Hello</h1>",
        },
        methods:{
            f1:function(){
                console.log("f1...");
            },
            f2(s){
                console.log("f2...");
                console.log(s);
            },
            f3(){
                console.log("f3...");
                this.msg="abc";
            }
        }
    });
</script>
</html>